package gat.infrastructure.persistence.po.backgroundUser;

import com.baomidou.mybatisplus.annotation.TableName;
import com.bitsun.core.framwork.infrastructure.persistence.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.io.Serializable;

/**
 * 权限表
 * @author: tmac
 * @email: tmac
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value = "u_permissions", resultMap = "permissionsMap")
public class PermissionsPo extends BasePo<PermissionsPo> implements Serializable{
    private static final long serialVersionUID = 1L;

    public PermissionsPo(){

    }
    public PermissionsPo(Long id){
        this.id = id;
    }

    /**
     * 权限名称 varchar
     */
    private String name;

    /**
     * 节点等级 int4
     */
    private Integer level;

    /**
     * 父级id int8
     */
    private Long parentId;

    /**
     * 权限描述 varchar
     */
    private String description;

    /**
     * 路由地址 varchar
     */
    private String route;

    /**
     * 路径
     */
    private String path;

    /**
     * 图标
     */
    private String icon;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 是否展示
     */
    private Integer display;

    /**
     * 权限标识
     */
    private String permissionsFlag;



}






